package com.herui.sdyu_lib.http.param;


import com.herui.sdyu_lib.http.okhttp.OKHttpRequestCall;
import com.herui.sdyu_lib.http.okhttp.RetrofitCall;

public class RequestParams extends BaseParams<RequestParams> {

	private long readTimeOut;
	private long writeTimeOut;
	private long connTimeOut;

	private String uri;
	private String saveFilePath; // 下载文件时文件保存的路径和文件名

	public String getUri() {
		return uri;
	}

	public RequestParams url(String uri) {
		this.uri = uri;
		return this;
	}

	public String getSaveFilePath() {
		return saveFilePath;
	}

	public void setSaveFilePath(String saveFilePath) {
		this.saveFilePath = saveFilePath;
	}

	public Long getReadTimeOut() {
		return readTimeOut;
	}

	public Long getWriteTimeOut() {
		return writeTimeOut;
	}

	public Long getConnTimeOut() {
		return connTimeOut;
	}

	@Override
	public OKHttpRequestCall buildOkhttp() {
		return new OKHttpRequestCall(this);
	}

	@Override
	public RetrofitCall buildRetrofit() {
		return null;
	}
}
